from colorama import init, Fore, Back, Style
init(autoreset=True)
class ColorLog():
    @staticmethod
    def error(msg: str, background=False):
        print((Back.RED if background else Fore.RED) + msg)
    @staticmethod
    def warn(msg: str, background=False):
        print((Back.YELLOW if background else Fore.YELLOW) + msg)
    @staticmethod
    def success(msg: str, background=False):
        print((Back.GREEN if background else Fore.GREEN) + msg)
    @staticmethod
    def close():
        print(Style.RESET_ALL)

ColorLog.error('Error: User not found!', background=True)
ColorLog.success('Login success!', background=True)
ColorLog.warn('Something went wrong!')